            <% content_for :sidebar do -%>
            <div class="side_box">
                <ul class="menu">
                    <li><%= image_tag("page_white_add.png", :align=>"absmiddle")%> <%= link_to "发帖", newpost_site_url(@site) %></li>
                    <% if @site.can_edit?(current_user) -%>
                        <li><%= image_tag("page_white_edit.png", :align=>"absmiddle")%> <%= link_to "编辑场所资料", edit_site_path(@site) %></li>
                    <% end -%>
                </ul>
            </div>
            
            <% if @tags.size > 0 -%>
	    <div class="tab">
  		<h3>场所标签</h3>
	    </div>
	    <div class="clear">
		<% tag_cloud @tags, %w(nube1 nube2 nube3 nube4 nube5) do |name, css_class| -%> 
                    <span class="<%=css_class%>">
                    <%= link_to name, tag_path(name, :type => 'site', :type_id => @site)%>
                    </span>
                <% end -%>
	    </div>
            <% end -%>
            
            <% if @site.communities.size > 0%>
            <div class="tab">
  		<h3>邻近的社区</h3>
	    </div>
	    <div class="clear">
		<% for community in @site.communities -%>
                    <%= link_to "#{community.title}", community_path(community.district, community)%><span class="postsubinfo">(<%= community.users.size%>个用户,<%= community.common_posts.size%>个帖子)</span><br/>
                <% end -%>
	    </div>
            <% end -%>
            
            <% if @site.neighbor_sites.size > 0 -%>
            <div class="tab">
  		<h3>邻近的场所</h3>
	    </div>
	    <div class="clear">
                <% for site in @site.neighbor_sites -%>
                    <%= link_to "#{site.title}", site_path(site)%><span class="postsubinfo">[<%= site.site_category.title%>](<%= site.site_posts.size%>个评论,<%= site.votegood_count%>/<%= site.votegood_count + site.votebad_count%>的人觉得好)</span><br/>
                <% end -%>
	    </div>
            <% end -%>
            
	    <% end -%>
            
            <% content_for :navbar do -%>
            <div class="box">
                <img class="map" align="absmiddle" alt="You are here" src="/images/map.png"/>
                当前位置 
                » <%= link_to "您这儿", :controller =>'browse', :action => 'index' %> 
                » <%= link_to "#{@site.title}", site_path(@site) %>
                
                <% if !current_user.nil? && !current_user.community.nil? && !current_user.is_live_in(@site.communities) -%>
                <b>
                    <%= image_tag("/images/loadingw.gif", :id => "loading-gif", :style => "display:none")%>
                    <span id="update_div_n">
                    (
                    <% form_remote_tag(:update => "update_div_n", :url => set_neighbor_site_path(@site), :method => :post, :loading => "Element.show('loading-gif'),Element.hide('update_div_n')",:complete => "Element.hide('loading-gif'),Element.show('update_div_n')") do -%>
                        <%= submit_tag "在我旁边" %>
                    <% end -%>
                    )
                    </span>
                </b>
                <% end -%>
                
            </div>
            <% end -%>
            <div class="box">
                <table width="95%" border="0">
                    <tr>
                        <td width="20%" valign="bottom">
                            名称：<p class="itemseparator"></p>
                        </td>
                        <td width="50%" valign="bottom">
                            <%= @site.title%><p class="itemseparator"></p>
                        </td>
                        <td width="30%" rowspan="4" align="center" valign="middle">
                            <%= render :partial => 'shared/siteMediumImageNoLink', :object =>@site %>
                        </td>
                    </tr>
                    <tr>
                        <td valign="bottom">
                            联系方式：<p class="itemseparator"></p>
                        </td>
                        <td valign="bottom">
                            <%= @site.biz_contact%><p class="itemseparator"></p>
                        </td>
                    </tr>
                    <tr>
                        <td valign="bottom">
                            地址：<p class="itemseparator"></p>
                        </td>
                        <td valign="bottom">
                            <%= @site.biz_place%><p class="itemseparator"></p>
                        </td>
                    </tr>
                    <tr>
                        <td valign="bottom">
                            介绍：<p class="itemseparator"></p>
                        </td>
                        <td valign="bottom">
                            <%= @site.description%><p class="itemseparator"></p>
                        </td>
                    </tr>
                    <tr>
                        <td valign="bottom">
                            对这个场所的评价：<p class="itemseparator"></p>
                        </td>
                        <td valign="bottom">
                            <b>
                            <% if !current_user.nil? && !check_site_vote(@site) -%>
                            <%= image_tag("/images/loadingw.gif", :id => "loading-gif", :style => "display:none")%>
                            <span id="update_div">
                            您觉得这个地点
                            <span id = "votegood_form">
                                <% form_remote_tag(:update => "update_div", :url => votegood_site_path(@site), :method => :post, :loading => "Element.show('loading-gif'),Element.hide('votegood_form'),Element.hide('votebad_form')",:complete => "Element.hide('loading-gif'),Element.hide('votegood_form'),Element.hide('votebad_form')") do -%>
                                    <%= submit_tag "好" %>
                                <% end -%>
                            </span>
                            <span id = "votebad_form">
                                <% form_remote_tag(:update => "update_div", :url => votebad_site_path(@site), :method => :post, :loading => "Element.show('loading-gif'),Element.hide('votegood_form'),Element.hide('votebad_form')",:complete => "Element.hide('loading-gif'),Element.hide('votegood_form'),Element.hide('votebad_form')") do -%>
                                    <%= submit_tag "不好" %>
                                <% end -%>
                            </span>
                            ， 已有<%= @site.votegood_count%>/<%= @site.votegood_count + @site.votebad_count%>的人觉得这个地方不错。
                            </span>
                            <% else -%>
                            <%= @site.votegood_count%>/<%= @site.votegood_count + @site.votebad_count%>的人觉得这个地方不错。
                            <% end -%>
                            </b>
                            <p class="itemseparator"></p>
                        </td>
                    </tr>
                </table>
            </div>
            <div class="box">
                <h3>
                <%= feed_icon_tag @site.title, formatted_site_path(@site, :rss) %> 
                最近讨论. . . . . .</h3>
                <%= render :partial=>'shared/posts', :object => @posts%>
            </div>

